package com.hk.zuulservice.feign.impl;

import com.hk.commons.CommonResult;
import com.hk.model.WxPermission;
import com.hk.model.vo.Result;
import com.hk.model.vo.ResultVO;
import com.hk.zuulservice.feign.UserFeignClient;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @Author: aerfazhe
 * @Date: 2021/8/10 19:44
 * @Statement: 管理员客户端实现熔断
 */
@Component
public class UserFeignClientImpl implements UserFeignClient {

    @Override
    public Result permissionToCheck(String uri, Integer id) {
        return CommonResult.errorResult("权限匹配服务调用失败....");
    }

    @Override
    public ResultVO pageList(Integer page, Integer limit, WxPermission permission,Integer type) {
        return CommonResult.errorResultVO(0, Arrays.asList("权限服务请求调用失败......"));
    }
}
